package com.usabb.service;

import com.usabb.domain.AmenityRelationDO;
import com.ifast.common.base.CoreService;
import com.usabb.pojo.vo.AmenityAddVO;

import java.util.List;

/**
 * 
 * <pre>
 * 配套关联表
 * </pre>
 * <small> 2019-08-19 18:03:26 | Aron</small>
 */
public interface AmenityRelationService extends CoreService<AmenityRelationDO> {

    List<AmenityRelationDO> getListBy(final String bizType, final Long bizId);
    List<Long> getAmenityIdListBy(final String bizType, final Long bizId);

    /**
     * 删除原纪录,然后新增
     * 配套, 周边, 关联医院
     */
    boolean saveOrUpdate(AmenityAddVO addVO);
    boolean deleteBy(final String bizType, final Long bizId);
    boolean insert(final Long bizId, final Long[] amenityIds, final String bizType);
}
